package schemas

import "github.com/gin-gonic/gin"

type RoleCreate struct {
	ID   uint   `json:"id" default:"0"`
	Name string `json:"name" binding:"required" comment:"角色名称"`
	Desc string `json:"desc" binding:"required" comment:"角色描述"`
}

func (s *RoleCreate) BindValidParam(ctx *gin.Context) error {
	return DefaultGetValidParams(ctx, s)
}
